package com.caishi.lkx.user.userlog.vo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CountItemClient {

    /**
     * 当天记录数据
     */
    private double todayCount;


    /**
     * 总记录数据
     */
    private double allCount;

    public void addTodayCount(double c) {
        this.todayCount += c;
    }

    public void addAllCount(double c) {
        this.allCount += c;
    }

    public void addAll(CountItemClient data) {
        this.addAllCount(data.getAllCount());
        this.addTodayCount(data.getTodayCount());
    }

    public CountItemClient today2All() {
        this.allCount = this.todayCount;
        return this;
    }
}
